/*
* 注册路由拦截器
* */
export function registerRouterGuards(router) {
  /*router.beforeEach(async (to, from, next) => {
    const _tokenValue:string = (from.query.tokenValue || to.query.tokenValue) as string;
    const _tokenName:string = (from.query.tokenName || to.query.tokenName) as string;
    if (_tokenName) {
      localStorage.setItem('tokenName', _tokenName);
    }
    if (_tokenValue) {
      localStorage.setItem('tokenValue', _tokenValue);
      delete to.query.tokenName;
      delete to.query.tokenValue;
      return next({
        path: to.path,
        query: to.query,
      });
    }

    const tokenValue = localStorage.getItem('tokenValue');
    if (tokenValue) {
      // 路由权限校验
      next();
    } else {
      // 跳转登录
    }
  });*/
}
